package com.neusoft.elm.dao;

import com.neusoft.elm.po.Business;
import java.util.List;

/**
 * 商家方法接口
 */
public interface BusinessDao{

    //查询商家信息
    public List<Business> listBusiness(String businessName, String businessAddress);
    //保存商家信息
    public int saveBusiness(String businessName);
    //删除商家信息
    public int removeBusiness(int businessId);

    //登录
    public Business getBusinessByIdByPass(Integer bussinessId,String password);

    //使用编号查询商家
    public Business getBusinessById(Integer businessId);

    //修改商家信息
    public int updateBusiness(Business business);

    //修改商家密码
    public int updateBusinessByPassword(Integer businessId,String password);
}